From e9626ce65f6bc04639f8b08a141ee8ea70e838ce Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Wed, 7 Sep 2005 17:26:27 +0000 Subject: [PATCH] Fix vif scripts for domains with more than one ip. As reported in bug 218 by christian@prehl.de. Signed-off-by: Christian Limpach --- tools/examples/vif-bridge | 2 +- tools/examples/vif-route | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/examples/vif-bridge b/tools/examples/vif-bridge index f27a4b03ee..2a3903a310 100755 --- a/tools/examples/vif-bridge +++ b/tools/examples/vif-bridge @@ -80,7 +80,7 @@ if [ "${brcmd}" == "addif" ] ; then fi ifconfig ${vif} $OP -if [ ${ip} ] ; then +if [ "${ip}" ] ; then # If we've been given a list of IP networks, allow pkts with these src addrs. for addr in ${ip} ; do diff --git a/tools/examples/vif-route b/tools/examples/vif-route index e2ff8b0f19..2c0b2d1d3a 100755 --- a/tools/examples/vif-route +++ b/tools/examples/vif-route @@ -63,7 +63,7 @@ case $OP in ;; esac -if [ ${ip} ] ; then +if [ "${ip}" ] ; then # If we've been given a list of IP networks, allow pkts with these src addrs. for addr in ${ip} ; do -- 2.30.2